﻿using System.Configuration;

namespace Borg.Config
{
    public class LoggerElementCollection : ConfigurationElementCollection
    {
        public LoggerElement this[int index]
        {
            get { return (LoggerElement)BaseGet(index); }
        }

        protected override ConfigurationElement CreateNewElement()
        {
            return new LoggerElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((TypeElement)element).Type;
        }
    }
}
